import {myName, flag, num} from './aaa.js'
import {food} from './aaa.js'
import {test} from './aaa.js'
//方便修改名字
import ss from './aaa.js'

//全部导入 
import * as all from './aaa.js'
console.log(all);


// 导出方式1: 导出对象
console.log(myName, flag);
console.log(num(10,20));

//导出方式2 代码 导出变量
console.log(food);

//导出方式3: 导出函数
test();

//导出方式4: 默认导出
console.log(ss.name);



